# a = 10
# b = 10
# print(a)
# print(b)
# print(a + b)
# a = 20
# print(a)
# x,y,z = 1,2,3
# print(x,y,z) #1,2,3
# a = True
# print(type(a)) # <class 'bool'>
# for i in range(1,5):
#     print(i)
# for i in range(1,10):
#     if(i % 3 == 0):
#         continue
#     else:
#         print(i,end = ' ')
# List = [1,2,3]
# list.append(4)
# print(List)
# list_1 = [1,2,3,4]
# a = list_1.pop()
# print(list_1)
# print(a)
# 使用切片操作反转列表并返回新列表
# my_list = [3, 1, 5, 2, 4]
# reversed_list = my_list[::-1]
# print(reversed_list) # [4, 2, 5, 1, 3]
# print(my_list) # [3, 1, 5, 2, 4]
# my_list = [3, 1, 5, 2, 4]
# print(my_list[0:4])
# print(my_list[:3])
# print(my_list[1:])
# print(my_list[:])
# print(my_list[0:4:2])
# print(my_list[::-1])
my_list = [1,2,3,4,5,6,7,8,9]
for i in my_list:
    print(i,end = ' ')